PR
Harmony’s Haven Studio A professional studio inside The Refrain
The Refrain · Professional Music Studio

Harmony’s Haven Studio™


Professional 88-Key Keyboard & Multi-Track Studio

Play the complete piano range, compare twenty-one instruments, practice scales, record layered performances, replay every track with its original instrument, view a grand-staff pitch preview, print notation, and keep portable project backups. Your arrangement is saved locally in this browser.

88 keys · 21 instruments
Touch, mouse, glissando, and computer-keyboard performance.
Local project recovery
Tracks and studio settings return after an ordinary page reload.
Preparing your local studio…
Quick start and keyboard map
1. Choose a soundSelect an instrument and adjust the master volume before playing.
2. PlayUse the full on-screen keyboard or the computer keys A W S E D F T G Y H U J K O L P ;
3. Record layersRecord Track 1, stop, create a new track, and change instruments between layers.
4. Save or moveYour work auto-saves locally. Export a JSON project to move it to another browser.
Performance surface

88-Key Professional Keyboard


Touch or click individual notes, drag across keys for a glissando, or use the mapped computer keyboard row.

Computer keys: A W S E D F T G Y H U J K O L P ; · Notes begin at C4.
Tone

Sound & Feel

Choose the instrument used for live playing and newly recorded notes.

Grand Piano
35%
Sustain pedal Poly: 0

Instrument samples stream only when a note is played. If a remote sample cannot load, Harmony’s Haven uses a built-in synthesized tone so the keyboard remains playable.

Time

Metronome

Set a tempo and keep a four-beat pulse while practicing or recording.

96 bpm
22%

The first beat receives a slightly higher accent. The click is created locally with the browser’s audio engine.

Arrange

Performance Recorder

Capture a take, create independent layers, and replay each note with the instrument used when it was recorded.

Ready. Track 1 is armed.

Local recovery is automatic. Exported JSON projects include tracks, instruments, volume, tempo, labels, sustain, and notation speed.

Practice

Scale Studio

Hear a scale through the selected instrument at the current metronome tempo.

Automated scale and playback tools do not write duplicate notes into an armed recording track.

Pitch view

Grand-Staff Notation Preview

Viewing: Track 1 · 0 notes
1.0×
Arrangement

Track Layers

Open a track’s staff, rename it, play it, mute it, or clear its notes.
`; win.document.write(printDocument); win.document.close(); }; /* =============================== TRACK LIST RENDERING =============================== */ const tracksListEl = document.getElementById("tracksList"); function renderTracksList(){ tracksListEl.innerHTML = ""; tracks.forEach(track=>{ const row = document.createElement("div"); row.className = "track-row"+(track.id===currentTrack?.id?" selected":""); const main = document.createElement("div"); main.className = "track-main"; const info = document.createElement("div"); info.className = "track-info"; const name = document.createElement("div"); name.className = "track-name"; name.textContent = track.name + (track.id === expandedTrackId ? " (editing)" : ""); const meta = document.createElement("div"); meta.className = "track-meta"; meta.textContent = `${track.notes.length} notes · ${track.muted ? "Muted" : "Audible"}`; info.appendChild(name); info.appendChild(meta); const btns = document.createElement("div"); btns.className = "track-buttons"; const editBtn = document.createElement("button"); editBtn.className = "small secondary"; editBtn.textContent = track.id===expandedTrackId?"Close Staff":"Edit Staff"; editBtn.onclick = ()=>{ if(expandedTrackId === track.id){ expandedTrackId = null; }else{ expandedTrackId = track.id; currentTrack = track; } setRecUI(); renderStaffForCurrent(); renderTracksList(); saveLocalProject("Track selection updated."); }; const renameBtn = document.createElement("button"); renameBtn.className = "small secondary"; renameBtn.textContent = "Rename"; renameBtn.onclick = ()=>{ const nextName = prompt("Track name",track.name); if(nextName===null) return; const clean = nextName.trim().slice(0,60); if(!clean) return; track.name = clean; renderTracksList(); renderStaffForCurrent(); saveLocalProject("Track renamed."); }; const playBtn = document.createElement("button"); playBtn.className = "small"; playBtn.textContent = "▶ Play"; playBtn.onclick = ()=>{ stopStaffTimers(); const notes = track.notes.slice().sort((a,b)=>a.time-b.time); notes.forEach(ev=>{ const id = setTimeout(()=>{ noteOn(ev.note,ev.velocity||.9,{record:false,instrument:ev.instrument}); }, ev.time); staffTimers.push(id); }); }; const muteBtn = document.createElement("button"); muteBtn.className = "small secondary"; muteBtn.textContent = track.muted ? "Unmute" : "Mute"; muteBtn.onclick = ()=>{ track.muted = !track.muted; renderTracksList(); saveLocalProject(track.muted?"Track muted.":"Track unmuted."); }; const clearBtn = document.createElement("button"); clearBtn.className = "small danger"; clearBtn.textContent = "Clear"; clearBtn.onclick = ()=>{ if(!confirm(`Clear ${track.name}?`)) return; track.notes = []; if(track===currentTrack) renderStaffForCurrent(); renderTracksList(); saveLocalProject(`${track.name} cleared.`); }; btns.appendChild(editBtn); btns.appendChild(renameBtn); btns.appendChild(playBtn); btns.appendChild(muteBtn); btns.appendChild(clearBtn); main.appendChild(info); main.appendChild(btns); const mini = document.createElement("div"); mini.className = "track-staff"; renderStaff(track, mini, {compact:true}); row.appendChild(main); row.appendChild(mini); tracksListEl.appendChild(row); }); } if(!restoreLocalProject()){ armInitialTrack(); expandedTrackId = currentTrack.id; saveLocalProject("New local project ready."); } projectInitialized = true; sustainBtn.setAttribute("aria-pressed",String(sustainOn)); metroToggle.setAttribute("aria-pressed","false"); setRecUI(); renderTracksList(); renderStaffForCurrent(); [scaleSelect].forEach(control=>control.addEventListener("change",scheduleProjectSave)); window.addEventListener("beforeunload",()=>saveLocalProject("Project saved locally."));